package com.alex.core.domain.device;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cb
 * @date 2019/12/30 18:12
 */
@Data
@ToString
public class DeviceWaysDTO implements Serializable {
    @ApiModelProperty(value = "编号")
    private Integer id;

    @ApiModelProperty(value = "设备ID")
    private Integer deviceId;

    @ApiModelProperty(value = "设备编号")
    private String deviceNumber;

    @ApiModelProperty(value = "设备插座编号")
    private Integer deviceWays;

    @ApiModelProperty(value = "状态：1使用中，2空闲，3故障,4我预约，5其他人预约")
    private Integer status;

    @ApiModelProperty(value = "开始充电时间")
    @TableField(strategy = FieldStrategy.IGNORED)
    private Date startTime;

    @ApiModelProperty(value = "充电时长:分钟")
    private String openingHour;

    @ApiModelProperty(value = "剩余时间：分钟")
    private String timeLeft;

    @ApiModelProperty(value = "离线充电码自增Id")
    private Integer codeid;

    @ApiModelProperty(value = "下发端口的时候看当前用户是否占有端口如果是就返回订单ID")
    private Integer tranid;

    @ApiModelProperty(value = "当值为CODE的时候就是电码充电")
    private Integer chargeCode;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "使用次数")
    private Integer usedTimes;
}
